package com.huadi.service.impl;

import com.huadi.dao.ExamPointDao;
import com.huadi.domain.ExamPoint;
import com.huadi.service.ExamPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class ExamPointServiceImpl implements ExamPointService {
    @Autowired
    private ExamPointDao examPointDao;
    private ExamPoint examPoint;

    @Override
    public int addExamPoint(ExamPoint examPoint) {

        int num1 = examPointDao.insertExamPoint(examPoint);
        return num1;
    }

    @Override
    public List<ExamPoint> findExamPoints() {
        return examPointDao.selectExamPoints();
    }
}
